package com.kayt.cyberBar.cuser.business.service;

import java.sql.SQLException;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;

import com.kayt.cyberBar.common.PageData;
import com.kayt.cyberBar.common.ServerResponse;
import com.kayt.cyberBar.cuser.business.entity.req.vo.StoreReqVO;
import com.kayt.cyberBar.cuser.business.entity.rsp.vo.DepartRspVO;
import com.kayt.cyberBar.cuser.business.entity.rsp.vo.UserDetailRspVO;

@Path("/store")
public interface IStoreService {
	
	@GET
	@Path("getDepartByStoreCode.do")
	@Produces({"application/json" + ";charset=UTF-8"})
	@Consumes({"application/json"})
	ServerResponse<PageData<DepartRspVO>> getDepartByStoreCode(@QueryParam("")StoreReqVO reqVO) throws SQLException;
	
	@POST
	@Path("addDepart.do")
	@Produces({"application/json" + ";charset=UTF-8"})
	@Consumes({"application/json"})
	ServerResponse<String> addDepart(StoreReqVO reqVO);
	
	@GET
	@Path("deleteDepart.do")
	@Produces({"application/json" + ";charset=UTF-8"})
	@Consumes({"application/json"})
	ServerResponse<String> deleteDepart(@QueryParam("id")String id);
	
	@POST
	@Path("updateDepart.do")
	@Produces({"application/json" + ";charset=UTF-8"})
	@Consumes({"application/json"})
	ServerResponse<String> updateDepart(StoreReqVO reqVO);
	
	@GET
	@Path("getUserByStoreCode.do")
	@Produces({"application/json" + ";charset=UTF-8"})
	@Consumes({"application/json"})
	ServerResponse<PageData<UserDetailRspVO>> getUser(@QueryParam("")StoreReqVO reqVO);
	
	@GET
	@Path("getUserByStore.do")
	@Produces({"application/json" + ";charset=UTF-8"})
	@Consumes({"application/json"})
	ServerResponse<PageData<UserDetailRspVO>> getUserByDepart(@QueryParam("")StoreReqVO reqVO);

	
}
